package com.yyfax.account.dao;

import com.yyfax.account.domain.DayChangeRecon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DayChangeReconDao {

	/**
	 * @mbggenerated
	 */
	int insert(DayChangeRecon record);

	/**
	 * @mbggenerated
	 */
	DayChangeRecon selectByPrimaryKey(Integer id);

	/**
	 * @mbggenerated
	 */
	int updateByPrimaryKeySelective(DayChangeRecon record);

	/**
	 * @mbggenerated
	 */
	int updateByPrimaryKey(DayChangeRecon record);

	/**
	 * 对账日切：两边对不上的数目
	 *
	 * @author liangqm
	 * @date 2017-10-25 16:00:18
	 * @since v1.0.0
	 * @param changeDay
	 * @param dataType
	 * @return
	 */
	DayChangeRecon countOfDayChangeNotEquals(@Param("changeDay") String changeDay, @Param("dataType") String dataType);

	/**
	 * 对账日切：两边对不上的数目之外的数目
	 *
	 * @author yangrd
	 * @date 2017-09-26 19:31
	 * @since v1.0.0
	 * @param changeDay
	 * @return
	 */
	List<DayChangeRecon> countOfDayChange(@Param("changeDay") String changeDay);

	/**
	 * 查询日切对账 账面余额和冻结余额 差异总数
	 *
	 * @author liangqm
	 * @date 2017-10-20 9:39:18
	 * @since v1.0.0
	 * @param changeDay
	 * @param dataType
	 * @return
	 */
	DayChangeRecon queryDayChangeReconByDate(@Param("changeDay") String changeDay, @Param("dataType") String dataType);
}